package cevent.source.cloudcenter.server.exception;

/**
 * Created by Cevent on 2021/5/15.
 * 业务异常枚举类
 */
public enum BusinessExceptionCode {
    EMP_LOGIN_NAME("110","登录名已存在"),
    EMP_LOGIN_NAME_ERROR("111","登录名错误，请重新输入"),
    EMP_LOGIN_PWD_ERROR("112","密码错误，请重新输入"),
    EMP_LOGIN_ERROR("113","用户名或密码不存在，请重新输入"),
    MODULE_SORT_ERROR("114","请输入正数排序规则"),
    EMP_WORK_TIME("115","员工工作时间超出范围，请重新选择"),
    MEMBER_MOBILE_ERROR("116","会员电话号不存在，请重新输入"),
    MEMBER_MOBILE_EXIST("117","会员电话号已存在，请输出正确电话号"),
    MEMBER_PASSWORD_ERROR("118","会员密码不正确，请重新输入"),
    SHORT_MESSAGE_SEND_FREQUENT("119","短信发送太频繁，请等待一分钟后发送"),
    SHORT_MESSAGE_INPUT_ERROR("120","短信验证码输入错误，请重新输入"),
    SHORT_MESSAGE_UN_EXIST("121","短信验证码不存在，请重新发送短信")
    ;
    private String code;
    private String desc;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    BusinessExceptionCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
